from myelin.Ns import MYELIN, MYELINS

from nodetypes.Ns import NODETYPE_NS
from nodetypes.ntypes.Document import Document
from nodetypes.models.ErrorDocument import ErrorDocument as ErrorDocumentModel

import view


class ErrorDocument(Document):
    
    typeInfo = {
        'key' : u'error-document',
        'name' : u'ErrorDocument',
        'namespace-uri' : NODETYPE_NS,
    }
    
    ACTIONS = {
        'view' : view.TRANSFORMS,
    }
    
    model = ErrorDocumentModel


NODE_TYPES = {
    MYELIN + 'ErrorDocument' : ErrorDocument,
}


    